public class Animal {
    protected String name;          //动物类
}

class Cat extends Animal {          //猫类继承了动物类
    public Cat() {
        super.name = "蓝短";
    }
}


class Dog extends Animal{           //狗类继承了动物类
    public Dog() {
        super.name = "哈士奇";
    }
}